<?php if(isset($push)) {
	$s = "nav-pushed";
} else $s = "";?>

	<div class="navigation <?php echo $s ?>">
		

		<div class="navigation-wrapper">
			<a href="/godeal/"><div class="ico"></div></a>

			<?php if(!$session_name) { ?>


			<div class="login-button" onclick="to_link(0, 0)">
				Войти
			</div>
			<a href="/godeal/home/signup" class="register">Регистрация</a>
			<?php } else { ?>
			<div class="user-menu-button" onclick="user_menu()">

				<?php if(!$session_avatar) { ?>
					<img src="/img/default-ava.png" class="menu-ava">
				<?php } else { ?>
					<img src="<?php echo $session_avatar ?>" class="menu-ava">
				<?php } ?>
				
				▼ Привет, <b><?php echo $session_name ?></b>
				<div class="triangle"></div>
				<div class="user-menu">
					<a class="element" href="/godeal/home/cabinet">Личный кабинет</a>
					<a class="element" href="/godeal/home/myCoupons">Мои купоны</a>
					<a class="element" href="/godeal/home/myBills">Мои Счета</a>
					<hr>
					<a class="element" href="/godeal/home/logout">Выйти</a>
				</div>
			</div>
			<?php } ?>


			<div class="city-selector">
				<div class="hidden cities">
					<a href="#" class="element">Астана</a>
				</div>
				<div class="toggle">Астана <b>▼</b></div>
			</div>
		</div>

	</div>